package com.myshop.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 订单模块的订单实体(Orders)表实体类
 *
 * @author makejava
 * @since 2023-07-21 21:06:40
 */
@Data
@Accessors(chain = true)
public class Orders implements Serializable {
    @TableId(type = IdType.AUTO)
    //订单编号是字符串类型但是也是唯一标识
    private String id;
    //用户实体的主键属性
    private Integer uid;
    //地址实体的唯一主键列
    private Integer aid;
    //订单的总金额
    private Double count;
    //订单的详细时间
    private Date time;
    //订单状态 0 未付款，1已经付款未发货 2发货待收货 3 收货待评价 4订单完成 5 退货状态
    private Integer state;
}

